<div class="easyui-layout" style="overflow-y: hidden;"  fit="true"   scroll="no">
    <div data-options="region:'north',title:'',iconCls:'icon-ok'" style="height:100%">
        <p style="margin-top: 20px"></p>
        <table>

            <p style="margin-left: 500px">
                    <a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-add_archive'"    onclick="uploads_customer()">导入关系数据</a>

            </p>
            <br>
            <p style="margin-left: 500px">
                   <a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-add_archive'"    onclick="batch_uploads_customer()">批量导入关系数据</a>
                   <br>
                   <br> excel 文件请预先COPY到网站根目录：<br>uploads\excel\import下
            </p>
    </div>

</div>
<script type="text/javascript">



    function uploads_customer(){
        var url  = "<?php echo site_url('/admin/customer/import') ?>";
        parent.layer.open({
            type: 2,
            title: '导入人物关系',
            maxmin: true,
            shadeClose: false,  // 点击空白页不关闭窗口
            area : ['800px' , '480px'],
            shade: [0.2,'#fff'],
            content: url
        });
    }


    function batch_uploads_customer(){
        var url  = "<?php echo site_url('/admin/customer/batch_import') ?>";
        parent.layer.open({
            type: 2,
            title: '批量导入人物关系',
            maxmin: true,
            shadeClose: false,  // 点击空白页不关闭窗口
            area : ['480px' , '320px'],
            shade: [0.2,'#fff'],
            content: url
        });
    }
</script>

</body>
</html>
﻿